<?php
  include ("../init.php");
  
  foreach($_POST as $k=>$v){
    $$k = $v;
  }
  
  $sql = "UPDATE hs_contact SET 
  c_company_name='$c_company_name',
  c_address='$c_address',
  c_tel='$c_tel',
  c_fax='$c_fax',
  c_email='$c_email',
  c_openhour='$c_openhour',
  c_latitude='$c_latitude',
  c_longtitude='$c_longtitude' ";

  $db->execute($sql);
  
  header("Location:index.php");
?>